package com.ruoyi.fs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.fs.mapper.FsCaseExpressMapper;
import com.ruoyi.fs.domain.FsCaseExpress;
import com.ruoyi.fs.service.IFsCaseExpressService;

/**
 * 案件快递关联Service业务层处理
 * 
 * @author hero
 * @date 2024-10-28
 */
@Service
public class FsCaseExpressServiceImpl implements IFsCaseExpressService 
{
    @Autowired
    private FsCaseExpressMapper fsCaseExpressMapper;

    /**
     * 查询案件快递关联
     * 
     * @param caseId 案件快递关联主键
     * @return 案件快递关联
     */
    @Override
    public List<FsCaseExpress> selectFsCaseExpressByCaseId(Long caseId)
    {
        FsCaseExpress query=new FsCaseExpress();
        query.setCaseId(caseId);
        return fsCaseExpressMapper.selectFsCaseExpressList(query);
    }

    /**
     * 查询案件快递关联列表
     * 
     * @param fsCaseExpress 案件快递关联
     * @return 案件快递关联
     */
    @Override
    public List<FsCaseExpress> selectFsCaseExpressList(FsCaseExpress fsCaseExpress)
    {
        return fsCaseExpressMapper.selectFsCaseExpressList(fsCaseExpress);
    }

    /**
     * 新增案件快递关联
     * 
     * @param fsCaseExpress 案件快递关联
     * @return 结果
     */
    @Override
    public int insertFsCaseExpress(FsCaseExpress fsCaseExpress)
    {
        return fsCaseExpressMapper.insertFsCaseExpress(fsCaseExpress);
    }

    /**
     * 修改案件快递关联
     * 
     * @param fsCaseExpress 案件快递关联
     * @return 结果
     */
    @Override
    public int updateFsCaseExpress(FsCaseExpress fsCaseExpress)
    {
        return fsCaseExpressMapper.updateFsCaseExpress(fsCaseExpress);
    }

    /**
     * 批量删除案件快递关联
     * 
     * @param caseIds 需要删除的案件快递关联主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseExpressByCaseIds(Long[] caseIds)
    {
        return fsCaseExpressMapper.deleteFsCaseExpressByCaseIds(caseIds);
    }

    /**
     * 删除案件快递关联信息
     * 
     * @param caseId 案件快递关联主键
     * @return 结果
     */
    @Override
    public int deleteFsCaseExpressByCaseId(Long caseId)
    {
        return fsCaseExpressMapper.deleteFsCaseExpressByCaseId(caseId);
    }
}
